CREATE TABLE [dbo].[TDUSUA_EMUN]
(
[CO_USUA] [dbo].[TD_VC_008] NOT NULL,
[TI_CONE] [dbo].[TD_VC_003] NULL,
[CO_EMPR_CONE] [dbo].[TD_VC_002] NULL,
[CO_UNID_CONE] [dbo].[TD_VC_003] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDUSUA_EM__CO_US__47DBAE45] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TDUSUA_EM__FE_US__48CFD27E] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDUSUA_EM__CO_US__49C3F6B7] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TDUSUA_EM__FE_US__4AB81AF0] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDUSUA_EMUN] ADD CONSTRAINT [PK__TDUSUA_E__E73828D971F1E3A2] PRIMARY KEY CLUSTERED  ([CO_USUA]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDUSUA_EMUN] ADD CONSTRAINT [FK__TDUSUA_EM__CO_US__2A01329B] FOREIGN KEY ([CO_USUA]) REFERENCES [dbo].[TMUSUA] ([CO_USUA])
GO
GRANT SELECT ON  [dbo].[TDUSUA_EMUN] TO [public]
GRANT INSERT ON  [dbo].[TDUSUA_EMUN] TO [public]
GRANT DELETE ON  [dbo].[TDUSUA_EMUN] TO [public]
GRANT UPDATE ON  [dbo].[TDUSUA_EMUN] TO [public]
GO
